home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
003
/
tpbsave.arc
/
BSDEMO.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-08-11
|
812b
|
46 lines
program deca;
{program to show how to use BSAVE procedure}
uses crt,graph;
var
x,
y,
a,
grdriver,
grmode:integer;
acx,
acy:array[0..9] of integer;
c:integer;
ac:arccoordstype;
{$i b:bsave.inc} {you might need to change the drive}
begin
grdriver:=detect;
grmode:=cgac2;
initgraph(grdriver,grmode,'');
a:=0;
for c:=0 to 9 do
begin
arc(319,99,a,a+35,200);
getarccoords(ac);
acx[c]:=ac.xend;
acy[c]:=ac.yend;
a:=a+36;
end;
for x:=0 to 8 do
for y:=x+1 to 9 do
line(acx[x],acy[x],acx[y],acy[y]);
bsave('b:demo.pic'); {you might need to change the drive}
textmode(c80);
end.